package ui.component
{
	import flash.display.Shape;

	/**
	 * 分隔线，小圆角
	 * @author luguobin
	 */
	public class SeparationLine extends Shape
	{
		private var _height:Number = 3;
		private var _width:Number = 100;

		public function SeparationLine(width:Number = 100)
		{
			_width = width;
			update();
		}

		private function update():void
		{
			with(this.graphics)
			{
				clear();
				lineStyle(1, 0xFFFFFF, 0.2);
				drawRect(0, 0, _width, _height);
				endFill();
			}
		}

		override public function set height(value:Number):void
		{
			_height = value;
			update();
		}

		override public function set width(value:Number):void
		{
			_width = value;
			update();
		}
	}
}